import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

//按需加载模块
const Index = resolve => require(['../components/Index.vue'], resolve);
const Guide = resolve => require(['../components/Guide.vue'], resolve);

export default new Router({
    routes: [{
        path: '/',
        name: 'index',
        component: Index
    }, {
        path: '/guide',
        name: 'guide',
        component: Guide
    }]
})